<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AR体验 - 江心漫屿</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="css/ar.css">
</head>
<body class="bg-black min-h-screen">
    <!-- 状态栏已移除 - 全面屏设计 -->

    <!-- AR相机界面 -->
    <div class="ar-camera-container">
        <!-- 模拟相机背景 -->
        <div class="camera-bg">
            <img src="https://images.unsplash.com/photo-1545569341-9eb8b30979d9?w=800&h=1200&fit=crop" 
                 class="w-full h-full object-cover">
            <div class="camera-overlay"></div>
        </div>
        
        <!-- AR识别区域 -->
        <div class="ar-scan-area">
            <div class="scan-frame">
                <div class="scan-corners">
                    <div class="corner top-left"></div>
                    <div class="corner top-right"></div>
                    <div class="corner bottom-left"></div>
                    <div class="corner bottom-right"></div>
                </div>
                <div class="scan-line"></div>
            </div>
            <div class="scan-text">
                <p class="text-white text-center mb-2">对准江心屿景点或文物</p>
                <p class="text-gray-300 text-sm text-center">体验增强现实互动</p>
            </div>
        </div>
        
        <!-- AR识别结果 -->
        <div class="ar-result hidden">
            <div class="result-content">
                <div class="ar-model">
                    <div class="model-container">
                        <div class="rotating-model">
                            <i class="fas fa-tower-observation text-6xl text-white"></i>
                        </div>
                    </div>
                </div>
                <div class="result-info">
                    <h3 class="text-white text-lg font-semibold mb-2">东塔</h3>
                    <p class="text-gray-300 text-sm mb-4">江心屿标志性建筑，始建于唐代，历经千年风雨依然屹立不倒。</p>
                    <div class="ar-actions">
                        <button class="ar-btn primary">
                            <i class="fas fa-play mr-2"></i>
                            开始讲解
                        </button>
                        <button class="ar-btn secondary">
                            <i class="fas fa-camera mr-2"></i>
                            拍照留念
                        </button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- AR互动元素 -->
        <div class="ar-interactions hidden">
            <div class="interaction-hotspot" style="top: 30%; left: 40%;">
                <div class="hotspot-pulse"></div>
                <div class="hotspot-icon">
                    <i class="fas fa-info text-white text-xs"></i>
                </div>
            </div>
            <div class="interaction-hotspot" style="top: 60%; left: 70%;">
                <div class="hotspot-pulse"></div>
                <div class="hotspot-icon">
                    <i class="fas fa-music text-white text-xs"></i>
                </div>
            </div>
        </div>
    </div>

    <!-- 顶部控制栏 -->
    <div class="top-controls">
        <button class="control-btn" id="closeBtn">
            <i class="fas fa-times text-white"></i>
        </button>
        <div class="ar-modes">
            <button class="mode-btn active" data-mode="scan">
                <i class="fas fa-camera"></i>
                <span>识别</span>
            </button>
            <button class="mode-btn" data-mode="ar">
                <i class="fas fa-vr-cardboard"></i>
                <span>AR</span>
            </button>
            <button class="mode-btn" data-mode="guide">
                <i class="fas fa-route"></i>
                <span>导览</span>
            </button>
        </div>
        <button class="control-btn" id="flashBtn">
            <i class="fas fa-bolt text-white"></i>
        </button>
    </div>

    <!-- 底部功能栏 -->
    <div class="bottom-controls">
        <div class="function-row">
            <button class="function-btn" id="galleryBtn">
                <i class="fas fa-images"></i>
                <span>相册</span>
            </button>
            <button class="capture-btn" id="captureBtn">
                <div class="capture-ring">
                    <div class="capture-inner"></div>
                </div>
            </button>
            <button class="function-btn" id="switchCameraBtn">
                <i class="fas fa-sync-alt"></i>
                <span>切换</span>
            </button>
        </div>
    </div>

    <!-- AR导览模式 -->
    <div class="ar-guide-mode hidden">
        <div class="guide-overlay">
            <div class="guide-arrow">
                <i class="fas fa-arrow-up text-4xl text-white"></i>
            </div>
            <div class="guide-distance">
                <span class="text-white text-lg font-semibold">200m</span>
            </div>
            <div class="guide-target">
                <h4 class="text-white font-medium">江心寺</h4>
                <p class="text-gray-300 text-sm">前方200米，步行3分钟</p>
            </div>
        </div>
        <div class="guide-progress">
            <div class="progress-bar">
                <div class="progress-fill" style="width: 30%;"></div>
            </div>
            <div class="progress-text">
                <span class="text-white text-sm">游览进度: 3/10 景点</span>
            </div>
        </div>
    </div>

    <!-- AR语音助手 -->
    <div class="ar-assistant">
        <div class="assistant-avatar">
            <div class="avatar-pulse"></div>
            <i class="fas fa-robot text-2xl text-blue-400"></i>
        </div>
        <div class="assistant-bubble hidden">
            <div class="bubble-content">
                <p class="text-sm text-white">欢迎来到江心屿！我是您的AR导游小江。</p>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200">
        <div class="flex justify-around py-3">
            <div class="text-center">
                <i class="fas fa-home text-gray-400 text-xl mb-1"></i>
                <p class="text-xs text-gray-400">首页</p>
            </div>
            <div class="text-center">
                <i class="fas fa-map text-gray-400 text-xl mb-1"></i>
                <p class="text-xs text-gray-400">地图</p>
            </div>
            <div class="text-center">
                <i class="fas fa-vr-cardboard text-green-600 text-xl mb-1"></i>
                <p class="text-xs text-green-600">AR</p>
            </div>
            <div class="text-center">
                <i class="fas fa-shopping-bag text-gray-400 text-xl mb-1"></i>
                <p class="text-xs text-gray-400">商城</p>
            </div>
            <div class="text-center">
                <i class="fas fa-user text-gray-400 text-xl mb-1"></i>
                <p class="text-xs text-gray-400">我的</p>
            </div>
        </div>
    </div>

    <script src="js/ar.js"></script>
</body>
</html>